package com.example.springboot.service;

import com.example.springboot.dao.DepartmentMapper;
import com.example.springboot.pojo.Department;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class DepartmentServiceImp implements DepartmentService{
    @Autowired
    private DepartmentMapper departmentMapper;

    @Override
    public List<Department> selectAllDept(){
        return departmentMapper.selectAllDept();
    }

}
